package top.ljlgithub.domain;

import java.util.List;

/**
 * @ClassName
 * @Description TODO
 * @Author L1470
 * @Date 2021/3/21 21:24
 * @Version 1.0
 **/
public class PageBean<T> {
    private int totalCount;//总记录数
    private int totalPage;//总页数
    private List<T> list;//用户列表

    public PageBean() {
    }

    public PageBean(int totalCount, int totalPage, List<T> list) {
        this.totalCount = totalCount;
        this.totalPage = totalPage;
        this.list = list;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "totalCount=" + totalCount +
                ", totalPage=" + totalPage +
                ", list=" + list +
                '}';
    }
}
